package com.ruoyi.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 云天下API配置
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
@Component
@ConfigurationProperties(prefix = "yuntianxia")
public class YuntianxiaConfig {
    
    /** 云天下API Token */
    private String token = "yuntianxia_token_2024";
    
    /** 云天下API密钥 */
    private String secret = "yuntianxia_secret_2024";
    
    /** 云天下API接口地址 */
    private String apiUrl = "https://api.yuntianxia.com";
    
    /** 是否启用云天下API */
    private boolean enabled = true;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getApiUrl() {
        return apiUrl;
    }

    public void setApiUrl(String apiUrl) {
        this.apiUrl = apiUrl;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }
}
